package com.aircoinst.feign.client;

import com.aircoinst.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("userservice") //Feign指定服务 (要访问的业务)
public interface UserClient {
    @GetMapping("/user/{id}")
    User getUserById(@PathVariable("id") Integer id);
}
